package API.Map.Traversal.KeyToValue;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class Lambda {
    public static void main(String[] args) {
        Map<String, String> map = new HashMap<>();
        map.put("1", "1");
        map.put("2", "2");
        map.put("3", "3");
        Set<String> keySet = map.keySet();
        keySet.forEach((key) -> {
            System.out.println(key + " : " + map.get(key));
        });
    }
}
